#ifndef PINLAYOUT_H
#define PINLAYOUT_H

/*** PIN Layout fuer LCD Kontroller HD44780 ***/

/* Delayzeit der WriteChar Funktion (in µs) */
#define LCD_HD44780_WRITECHAR_DELAY			F_CPU / 4.0E5		

/* Verwendet werden nur die oberen 4 Bits */
#define LCD_HD44780_DDR DDRD
#define LCD_HD44780_PORT PORTD
#define LCD_HD44780_PIN PIND		
#define LCD_HD44780_D4 PD4				
#define LCD_HD44780_D5 PD5
#define LCD_HD44780_D6 PD6
#define LCD_HD44780_D7 PD7
#define LCD_HD44780_RS PD3
#define LCD_HD44780_RW PD2

/* Enable Leitungen fuer zwei Kontroller */
#define LCD_HD44780_DDR_E  DDRB
#define LCD_HD44780_PORT_E PORTB
#define LCD_HD44780_PIN_E  PINB		

#define LCD_HD44780_E1 PB0
#define LCD_HD44780_E2 PB1

/* Busy Flag */
#define LCD_HD44780_BF LCD_HD44780_D7

/***/


#endif	/* PINLAYOUT_H */
